﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace SHRIS.MIS.Entity.ScadaData
{
    [Table("tb_production")]
    public class ProductionEntity
    {
        /// <summary>
        /// 记录主键
        /// </summary>
        [Key]
        [Column("RecordId")]
        public Guid Id { get; set; }

        /// <summary>
        /// 订单编号
        /// </summary>
        public string OrderId { get; set; }

        /// <summary>
        /// 工件编号
        /// </summary>
        [Required]
        public string ProductionId { get; set; }

        /// <summary>
        /// 加工结果
        /// </summary>
        [Required]
        public int ProductionResult { get; set; }

        /// <summary>
        /// 更新时刻
        /// </summary>
        [Required]
        public DateTimeOffset UpdateTime { get; set; }
    }
}
